/* 
 * File:   Inv.h
 * Author: Gab'z
 *
 * Created on 1 juin 2012, 22:15
 */

#ifndef INV_H
#define	INV_H

#include "UnaryOperator.h"

namespace calculator {

    class Inv : public UnaryOperator {
        friend class CommandMap;

    public:
        virtual ~Inv();
        
        Inv* clone() const;

        const Number* apply(const Number* n) const throw (ArithmeticException);

    private:
        Inv(const std::string name);
        Inv(const Inv& orig);
    };
}

#endif	/* INV_H */

